import request from '@/utils/request';
export const serviceHead = '/bmsystem'; // 项目前缀

// 查询客户账户列表
export function getListService (params) {
  return request({
    url: `${serviceHead}/account/list`,
    method: 'get',
    params
  });
}

// 查询客户账户详细
export function getDetailService (id) {
  return request({
    url: `${serviceHead}/account/${id}`,
    method: 'get'
  });
}

// 新增客户账户
export function addService (params) {
  return request({
    url: `${serviceHead}/account`,
    method: 'post',
    data: params
  });
}

// 修改客户账户
export function updateService (params) {
  return request({
    url: `${serviceHead}/account`,
    method: 'put',
    data: params
  });
}

// 删除客户账户
export function delService (id) {
  return request({
    url: `${serviceHead}/account/${id}`,
    method: 'delete'
  });
}
